aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/xattr.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2010-09-20 19:01:33 -0400
committerSteve French <sfrench@us.ibm.com>2010-09-29 15:04:32 -0400
commita6e8a8455c94565c53e1a1756d2ab9d9e3a902b8 (patch)
tree544628293da6aa14a136c915d887d0abdc689a03 /fs/cifs/xattr.c
parentba00ba64cf0895e4c2ac507e56306363dc125a90 (diff)
cifs: add function to get a tcon from cifs_sb
When we convert cifs to do multiple sessions per mount, we'll need more than one tcon per superblock. At that point "cifs_sb->tcon" will make no sense. Add a new accessor function that gets a tcon given a cifs_sb. For now, it just returns cifs_sb->tcon. Later it'll do more. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/xattr.c')
-rw-r--r--fs/cifs/xattr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/xattr.c b/fs/cifs/xattr.c
index a1509207bfa6..41f95bf67977 100644
--- a/fs/cifs/xattr.c
+++ b/fs/cifs/xattr.c
@@ -61,7 +61,7 @@ int cifs_removexattr(struct dentry *direntry, const char *ea_name)
61 xid = GetXid(); 61 xid = GetXid();
62 62
63 cifs_sb = CIFS_SB(sb); 63 cifs_sb = CIFS_SB(sb);
64 pTcon = cifs_sb->tcon; 64 pTcon = cifs_sb_tcon(cifs_sb);
65 65
66 full_path = build_path_from_dentry(direntry); 66 full_path = build_path_from_dentry(direntry);
67 if (full_path == NULL) { 67 if (full_path == NULL) {
@@ -116,7 +116,7 @@ int cifs_setxattr(struct dentry *direntry, const char *ea_name,
116 xid = GetXid(); 116 xid = GetXid();
117 117
118 cifs_sb = CIFS_SB(sb); 118 cifs_sb = CIFS_SB(sb);
119 pTcon = cifs_sb->tcon; 119 pTcon = cifs_sb_tcon(cifs_sb);
120 120
121 full_path = build_path_from_dentry(direntry); 121 full_path = build_path_from_dentry(direntry);
122 if (full_path == NULL) { 122 if (full_path == NULL) {
@@ -224,7 +224,7 @@ ssize_t cifs_getxattr(struct dentry *direntry, const char *ea_name,
224 xid = GetXid(); 224 xid = GetXid();
225 225
226 cifs_sb = CIFS_SB(sb); 226 cifs_sb = CIFS_SB(sb);
227 pTcon = cifs_sb->tcon; 227 pTcon = cifs_sb_tcon(cifs_sb);
228 228
229 full_path = build_path_from_dentry(direntry); 229 full_path = build_path_from_dentry(direntry);
230 if (full_path == NULL) { 230 if (full_path == NULL) {
@@ -346,7 +346,7 @@ ssize_t cifs_listxattr(struct dentry *direntry, char *data, size_t buf_size)
346 return -EIO; 346 return -EIO;
347 347
348 cifs_sb = CIFS_SB(sb); 348 cifs_sb = CIFS_SB(sb);
349 pTcon = cifs_sb->tcon; 349 pTcon = cifs_sb_tcon(cifs_sb);
350 350
351 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_XATTR) 351 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_XATTR)
352 return -EOPNOTSUPP; 352 return -EOPNOTSUPP;