aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2007-07-07 15:25:05 -0400
committerSteve French <sfrench@us.ibm.com>2007-07-07 15:25:05 -0400
commit790fe579f5006b72dfd2814f9263a73b0b455e81 (patch)
tree8d0749bb66bcd8993ae66101c6706e0ba432e155 /fs/cifs/cifsfs.c
parent6dc0f87e351142e224b396f29b59527c4b2d834c (diff)
[CIFS] more whitespace cleanup
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index 9122ef5c3174..17ed7cf750af 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -98,7 +98,7 @@ cifs_read_super(struct super_block *sb, void *data,
98 98
99 /* BB should we make this contingent on mount parm? */ 99 /* BB should we make this contingent on mount parm? */
100 sb->s_flags |= MS_NODIRATIME | MS_NOATIME; 100 sb->s_flags |= MS_NODIRATIME | MS_NOATIME;
101 sb->s_fs_info = kzalloc(sizeof(struct cifs_sb_info),GFP_KERNEL); 101 sb->s_fs_info = kzalloc(sizeof(struct cifs_sb_info), GFP_KERNEL);
102 cifs_sb = CIFS_SB(sb); 102 cifs_sb = CIFS_SB(sb);
103 if (cifs_sb == NULL) 103 if (cifs_sb == NULL)
104 return -ENOMEM; 104 return -ENOMEM;
@@ -117,9 +117,10 @@ cifs_read_super(struct super_block *sb, void *data,
117#ifdef CONFIG_CIFS_EXPERIMENTAL 117#ifdef CONFIG_CIFS_EXPERIMENTAL
118 if (experimEnabled != 0) 118 if (experimEnabled != 0)
119 sb->s_export_op = &cifs_export_ops; 119 sb->s_export_op = &cifs_export_ops;
120#endif /* EXPERIMENTAL */ 120#endif /* EXPERIMENTAL */
121/* if (cifs_sb->tcon->ses->server->maxBuf > MAX_CIFS_HDR_SIZE + 512) 121/* if (cifs_sb->tcon->ses->server->maxBuf > MAX_CIFS_HDR_SIZE + 512)
122 sb->s_blocksize = cifs_sb->tcon->ses->server->maxBuf - MAX_CIFS_HDR_SIZE; */ 122 sb->s_blocksize =
123 cifs_sb->tcon->ses->server->maxBuf - MAX_CIFS_HDR_SIZE; */
123#ifdef CONFIG_CIFS_QUOTA 124#ifdef CONFIG_CIFS_QUOTA
124 sb->s_qcop = &cifs_quotactl_ops; 125 sb->s_qcop = &cifs_quotactl_ops;
125#endif 126#endif
@@ -164,10 +165,10 @@ cifs_put_super(struct super_block *sb)
164 cFYI(1, ("In cifs_put_super")); 165 cFYI(1, ("In cifs_put_super"));
165 cifs_sb = CIFS_SB(sb); 166 cifs_sb = CIFS_SB(sb);
166 if (cifs_sb == NULL) { 167 if (cifs_sb == NULL) {
167 cFYI(1,("Empty cifs superblock info passed to unmount")); 168 cFYI(1, ("Empty cifs superblock info passed to unmount"));
168 return; 169 return;
169 } 170 }
170 rc = cifs_umount(sb, cifs_sb); 171 rc = cifs_umount(sb, cifs_sb);
171 if (rc) { 172 if (rc) {
172 cERROR(1, ("cifs_umount failed with return code %d", rc)); 173 cERROR(1, ("cifs_umount failed with return code %d", rc));
173 } 174 }
@@ -180,7 +181,7 @@ static int
180cifs_statfs(struct dentry *dentry, struct kstatfs *buf) 181cifs_statfs(struct dentry *dentry, struct kstatfs *buf)
181{ 182{
182 struct super_block *sb = dentry->d_sb; 183 struct super_block *sb = dentry->d_sb;
183 int xid; 184 int xid;
184 int rc = -EOPNOTSUPP; 185 int rc = -EOPNOTSUPP;
185 struct cifs_sb_info *cifs_sb; 186 struct cifs_sb_info *cifs_sb;
186 struct cifsTconInfo *pTcon; 187 struct cifsTconInfo *pTcon;
@@ -193,7 +194,7 @@ cifs_statfs(struct dentry *dentry, struct kstatfs *buf)
193 buf->f_type = CIFS_MAGIC_NUMBER; 194 buf->f_type = CIFS_MAGIC_NUMBER;
194 195
195 /* instead could get the real value via SMB_QUERY_FS_ATTRIBUTE_INFO */ 196 /* instead could get the real value via SMB_QUERY_FS_ATTRIBUTE_INFO */
196 buf->f_namelen = PATH_MAX; /* PATH_MAX may be too long - it would 197 buf->f_namelen = PATH_MAX; /* PATH_MAX may be too long - it would
197 presumably be total path, but note 198 presumably be total path, but note
198 that some servers (includinng Samba 3) 199 that some servers (includinng Samba 3)
199 have a shorter maximum path */ 200 have a shorter maximum path */
@@ -217,8 +218,7 @@ cifs_statfs(struct dentry *dentry, struct kstatfs *buf)
217 bypassed it because we detected that this was an older LANMAN sess */ 218 bypassed it because we detected that this was an older LANMAN sess */
218 if (rc) 219 if (rc)
219 rc = SMBOldQFSInfo(xid, pTcon, buf); 220 rc = SMBOldQFSInfo(xid, pTcon, buf);
220 /* 221 /* int f_type;
221 int f_type;
222 __fsid_t f_fsid; 222 __fsid_t f_fsid;
223 int f_namelen; */ 223 int f_namelen; */
224 /* BB get from info in tcon struct at mount time call to QFSAttrInfo */ 224 /* BB get from info in tcon struct at mount time call to QFSAttrInfo */