diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-17 23:58:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-17 23:58:12 -0500 |
commit | 848b81415c42ff3dc9a4204749087b015c37ef66 (patch) | |
tree | 391da3a73aea48632248220d2d6b8d45a88f7eae /fs/fuse | |
parent | 992956189de58cae9f2be40585bc25105cd7c5ad (diff) | |
parent | 6fd59a83b9261fa53eaf98fb5514abba504a3ea3 (diff) |
Merge branch 'akpm' (Andrew's patch-bomb)
Merge misc patches from Andrew Morton:
"Incoming:
- lots of misc stuff
- backlight tree updates
- lib/ updates
- Oleg's percpu-rwsem changes
- checkpatch
- rtc
- aoe
- more checkpoint/restart support
I still have a pile of MM stuff pending - Pekka should be merging
later today after which that is good to go. A number of other things
are twiddling thumbs awaiting maintainer merges."
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (180 commits)
scatterlist: don't BUG when we can trivially return a proper error.
docs: update documentation about /proc/<pid>/fdinfo/<fd> fanotify output
fs, fanotify: add @mflags field to fanotify output
docs: add documentation about /proc/<pid>/fdinfo/<fd> output
fs, notify: add procfs fdinfo helper
fs, exportfs: add exportfs_encode_inode_fh() helper
fs, exportfs: escape nil dereference if no s_export_op present
fs, epoll: add procfs fdinfo helper
fs, eventfd: add procfs fdinfo helper
procfs: add ability to plug in auxiliary fdinfo providers
tools/testing/selftests/kcmp/kcmp_test.c: print reason for failure in kcmp_test
breakpoint selftests: print failure status instead of cause make error
kcmp selftests: print fail status instead of cause make error
kcmp selftests: make run_tests fix
mem-hotplug selftests: print failure status instead of cause make error
cpu-hotplug selftests: print failure status instead of cause make error
mqueue selftests: print failure status instead of cause make error
vm selftests: print failure status instead of cause make error
ubifs: use prandom_bytes
mtd: nandsim: use prandom_bytes
...
Diffstat (limited to 'fs/fuse')
-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 78d2837bc940..e21d4d8f87e3 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c | |||
@@ -1599,19 +1599,19 @@ static sector_t fuse_bmap(struct address_space *mapping, sector_t block) | |||
1599 | return err ? 0 : outarg.block; | 1599 | return err ? 0 : outarg.block; |
1600 | } | 1600 | } |
1601 | 1601 | ||
1602 | static loff_t fuse_file_llseek(struct file *file, loff_t offset, int origin) | 1602 | static loff_t fuse_file_llseek(struct file *file, loff_t offset, int whence) |
1603 | { | 1603 | { |
1604 | loff_t retval; | 1604 | loff_t retval; |
1605 | struct inode *inode = file->f_path.dentry->d_inode; | 1605 | struct inode *inode = file->f_path.dentry->d_inode; |
1606 | 1606 | ||
1607 | /* No i_mutex protection necessary for SEEK_CUR and SEEK_SET */ | 1607 | /* No i_mutex protection necessary for SEEK_CUR and SEEK_SET */ |
1608 | if (origin == SEEK_CUR || origin == SEEK_SET) | 1608 | if (whence == SEEK_CUR || whence == SEEK_SET) |
1609 | return generic_file_llseek(file, offset, origin); | 1609 | return generic_file_llseek(file, offset, whence); |
1610 | 1610 | ||
1611 | mutex_lock(&inode->i_mutex); | 1611 | mutex_lock(&inode->i_mutex); |
1612 | retval = fuse_update_attributes(inode, NULL, file, NULL); | 1612 | retval = fuse_update_attributes(inode, NULL, file, NULL); |
1613 | if (!retval) | 1613 | if (!retval) |
1614 | retval = generic_file_llseek(file, offset, origin); | 1614 | retval = generic_file_llseek(file, offset, whence); |
1615 | mutex_unlock(&inode->i_mutex); | 1615 | mutex_unlock(&inode->i_mutex); |
1616 | 1616 | ||
1617 | return retval; | 1617 | return retval; |