summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-04-09 17:14:45 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2015-04-12 04:30:21 +0200
commit90320251db0fe3d05f2b10686ec936c7d6ecd99a (patch)
treeff55161fcd96c35d3ec568161302c2605334c36b /fs/nfs
parentocfs2_file_write_iter: stop messing with ppos (diff)
downloadlinux-90320251db0fe3d05f2b10686ec936c7d6ecd99a.tar.xz
linux-90320251db0fe3d05f2b10686ec936c7d6ecd99a.zip
ocfs2: move generic_write_checks() before the alignment checks
Alignment checks for dio depend upon the range truncation done by generic_write_checks(). They can be done as soon as we got ocfs2_rw_lock() and that actually makes ocfs2_prepare_inode_for_write() simpler. The only thing to watch out for is restoring the original count in "unlock and redo without dio" case. Position doesn't need to be restored, since we change it only in O_APPEND case and in that case it will be reassigned anyway. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfs')
0 files changed, 0 insertions, 0 deletions