summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2016-08-02 14:05:25 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-08-02 19:35:20 -0400
commitad980c9ab77cc4e0edc5dd3361fd69daabeb99f9 (patch)
tree4758726d573e01f8861e31a0b29eeb434e57af2c /include
parenta7d3f104da57eecb2b9881127d6bdf9abe7fde99 (diff)
downloadop-kernel-dev-ad980c9ab77cc4e0edc5dd3361fd69daabeb99f9.zip
op-kernel-dev-ad980c9ab77cc4e0edc5dd3361fd69daabeb99f9.tar.gz
nilfs2: fix misuse of a semaphore in sysfs code
Variables ns_seg_seq, ns_segnum, ns_nextnum, ns_pseg_offset, ns_cno, ns_ctime, ns_nongc_ctime, and ns_ndirtyblks, are protected by ns_segctor_sem, but ns_sem is wrongly used by the nilfs sysfs code when reading these variables. This fixes the misuse and clarifies which semaphore protects them in the comment of the_nilfs struct. Link: http://lkml.kernel.org/r/1465825507-3407-2-git-send-email-konishi.ryusuke@lab.ntt.co.jp Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud