aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorOlof Johansson <[email protected]>2013-09-09 10:34:23 -0700
committerLinus Torvalds <[email protected]>2013-09-09 10:47:42 -0700
commit45150c43b1b0c16e665fd0a5cdcca128b8192db1 (patch)
treee1faec166f3edb5974829d9f7ec4c25e02fd1572 /lib/memory-notifier-error-inject.c
parentef9a61bef917e38f8e096f6df303329aed6cf467 (diff)
direct-io: Use return from cmpxchg to decide of assignment happened
Not using the return value can in the generic case be racy, so it's in general good practice to check the return value instead. This also resolved the warning caused on ARM and other architectures: fs/direct-io.c: In function 'sb_init_dio_done_wq': fs/direct-io.c:557:2: warning: value computed is not used [-Wunused-value] Signed-off-by: Olof Johansson <[email protected]> Reviewed-by: Jan Kara <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Stephen Rothwell <[email protected]> Cc: Al Viro <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Russell King <[email protected]> Cc: H Peter Anvin <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions