diff options
author | Vladimir Davydov <vdavydov@parallels.com> | 2014-01-21 15:48:45 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-21 16:19:42 -0800 |
commit | b5bd856a0c2a6331ee3300fb589aeea56eba110b (patch) | |
tree | 3dff9573fc8fdc07b1961dc7412f7ceea7d17c1b /fs/efs | |
parent | 4e4f9e66a75921aa260c2f5bf626bdea54e51ba2 (diff) | |
download | op-kernel-dev-b5bd856a0c2a6331ee3300fb589aeea56eba110b.zip op-kernel-dev-b5bd856a0c2a6331ee3300fb589aeea56eba110b.tar.gz |
fs/super.c: fix WARN on alloc_super() fail path
On fail path alloc_super() calls destroy_super(), which issues a warning
if the sb's s_mounts list is not empty, in particular if it has not been
initialized. That said s_mounts must be initialized in alloc_super()
before any possible failure, but currently it is initialized close to
the end of the function leading to a useless warning dumped to log if
either percpu_counter_init() or list_lru_init() fails. Let's fix this.
Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/efs')
0 files changed, 0 insertions, 0 deletions