aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorHugh Dickins <[email protected]>2008-11-19 15:36:38 -0800
committerLinus Torvalds <[email protected]>2008-11-19 18:49:59 -0800
commitf9454548e17cd56bad081bd7d55a09b001950cbb (patch)
treedd1d2000dbdae6d9baa638d5166b268ec40e8445 /fs/jbd2/commit.c
parent63eb6b93ce725e4c5f38fc85dd703d49465b03cb (diff)
don't unlink an active swapfile
Peter Cordes is sorry that he rm'ed his swapfiles while they were in use, he then had no pathname to swapoff. It's a curious little oversight, but not one worth a lot of hackery. Kudos to Willy Tarreau for turning this around from a discussion of synthetic pathnames to how to prevent unlink. Mimic immutable: prohibit unlinking an active swapfile in may_delete() (and don't worry my little head over the tiny race window). Signed-off-by: Hugh Dickins <[email protected]> Cc: Willy Tarreau <[email protected]> Acked-by: Christoph Hellwig <[email protected]> Cc: Peter Cordes <[email protected]> Cc: Bodo Eggert <[email protected]> Cc: David Newall <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions