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/nfs/file.c | |
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/nfs/file.c')
-rw-r--r-- | fs/nfs/file.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c index 582bb8866131..3c2b893665ba 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c | |||
@@ -119,18 +119,18 @@ force_reval: | |||
119 | return __nfs_revalidate_inode(server, inode); | 119 | return __nfs_revalidate_inode(server, inode); |
120 | } | 120 | } |
121 | 121 | ||
122 | loff_t nfs_file_llseek(struct file *filp, loff_t offset, int origin) | 122 | loff_t nfs_file_llseek(struct file *filp, loff_t offset, int whence) |
123 | { | 123 | { |
124 | dprintk("NFS: llseek file(%s/%s, %lld, %d)\n", | 124 | dprintk("NFS: llseek file(%s/%s, %lld, %d)\n", |
125 | filp->f_path.dentry->d_parent->d_name.name, | 125 | filp->f_path.dentry->d_parent->d_name.name, |
126 | filp->f_path.dentry->d_name.name, | 126 | filp->f_path.dentry->d_name.name, |
127 | offset, origin); | 127 | offset, whence); |
128 | 128 | ||
129 | /* | 129 | /* |
130 | * origin == SEEK_END || SEEK_DATA || SEEK_HOLE => we must revalidate | 130 | * whence == SEEK_END || SEEK_DATA || SEEK_HOLE => we must revalidate |
131 | * the cached file length | 131 | * the cached file length |
132 | */ | 132 | */ |
133 | if (origin != SEEK_SET && origin != SEEK_CUR) { | 133 | if (whence != SEEK_SET && whence != SEEK_CUR) { |
134 | struct inode *inode = filp->f_mapping->host; | 134 | struct inode *inode = filp->f_mapping->host; |
135 | 135 | ||
136 | int retval = nfs_revalidate_file_size(inode, filp); | 136 | int retval = nfs_revalidate_file_size(inode, filp); |
@@ -138,7 +138,7 @@ loff_t nfs_file_llseek(struct file *filp, loff_t offset, int origin) | |||
138 | return (loff_t)retval; | 138 | return (loff_t)retval; |
139 | } | 139 | } |
140 | 140 | ||
141 | return generic_file_llseek(filp, offset, origin); | 141 | return generic_file_llseek(filp, offset, whence); |
142 | } | 142 | } |
143 | EXPORT_SYMBOL_GPL(nfs_file_llseek); | 143 | EXPORT_SYMBOL_GPL(nfs_file_llseek); |
144 | 144 | ||