aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorDmitry Monakhov <[email protected]>2013-04-29 15:08:42 -0700
committerLinus Torvalds <[email protected]>2013-04-29 15:54:38 -0700
commit865ffef3797da2cac85b3354b5b6050dc9660978 (patch)
tree831324f5fe5b1f0ed91318f5de7669045f4f941e /net/lapb/lapb_iface.c
parent209ff86d61d6b50979cffb47878fc77ca2f6c8a2 (diff)
fs: fix fsync() error reporting
There are two convenient ways to report errors to userspace 1) retun error to original syscall for example write(2) 2) mark mapping with error flag and return it on later fsync(2) Second one is broken if (mapping->nrpages == 0) This is real-life situation because after error pages are likey to be truncated or invalidated. We have to return an error regardless to number of pages in the mapping. #Original testcase: [email protected]:dmonakhov/xfstests.git MOUNT_OPTIONS="-b1024" ./check shared/305 Signed-off-by: Dmitry Monakhov <[email protected]> Reviewed-by: Jan Kara <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions