diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2017-07-15 00:49:54 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-15 01:05:13 +0300 |
commit | bfc740938d151001cb1158580796f8f3be3bf0c1 (patch) | |
tree | 3a0f549da5213fca25afe2ea9a8d4c20b7cc9b99 /fs/ecryptfs | |
parent | 9049f2f6e7bdfb5de0c63c2635bf3cdb70c4efb5 (diff) | |
download | linux-bfc740938d151001cb1158580796f8f3be3bf0c1.tar.xz |
fault-inject: make fail-nth read/write interface symmetric
The read interface for fail-nth looks a bit odd. Read from this file
returns "NYYYY..." or "YYYYY..." (this makes me surprise when cat this
file). Because there is no EOF condition. The first character
indicates current->fail_nth is zero or not, and then current->fail_nth
is reset to zero.
Just returning task->fail_nth value is more natural to understand.
Link: http://lkml.kernel.org/r/1491490561-10485-4-git-send-email-akinobu.mita@gmail.com
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ecryptfs')
0 files changed, 0 insertions, 0 deletions