diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2010-09-07 13:42:41 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2010-09-07 13:42:41 +0200 |
commit | b9ca67b2ddf021491a3741d9555e8ff59b2175ba (patch) | |
tree | 170010fef4f0b36ff01f1f9375d9beb9677178c7 /fs/fuse/file.c | |
parent | 595afaf9e6ee1b48e13ec4b8bcc8c7dee888161a (diff) | |
download | linux-3.10-b9ca67b2ddf021491a3741d9555e8ff59b2175ba.tar.gz linux-3.10-b9ca67b2ddf021491a3741d9555e8ff59b2175ba.tar.bz2 linux-3.10-b9ca67b2ddf021491a3741d9555e8ff59b2175ba.zip |
fuse: fix lock annotations
Sparse doesn't understand lock annotations of the form
__releases(&foo->lock). Change them to __releases(foo->lock). Same
for __acquires().
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/file.c')
-rw-r--r-- | fs/fuse/file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 147c1f71bdb..c8224587123 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -1144,8 +1144,8 @@ static void fuse_writepage_finish(struct fuse_conn *fc, struct fuse_req *req) /* Called under fc->lock, may release and reacquire it */ static void fuse_send_writepage(struct fuse_conn *fc, struct fuse_req *req) -__releases(&fc->lock) -__acquires(&fc->lock) +__releases(fc->lock) +__acquires(fc->lock) { struct fuse_inode *fi = get_fuse_inode(req->inode); loff_t size = i_size_read(req->inode); @@ -1183,8 +1183,8 @@ __acquires(&fc->lock) * Called with fc->lock */ void fuse_flush_writepages(struct inode *inode) -__releases(&fc->lock) -__acquires(&fc->lock) +__releases(fc->lock) +__acquires(fc->lock) { struct fuse_conn *fc = get_fuse_conn(inode); struct fuse_inode *fi = get_fuse_inode(inode); |