GFS2: Don't use ENOBUFS when ENOMEM is the correct error code
authorSteven Whitehouse <swhiteho@redhat.com>
Thu, 16 Jan 2014 10:31:13 +0000 (10:31 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 16 Jan 2014 10:31:13 +0000 (10:31 +0000)
Al Viro has tactfully pointed out that we are using the incorrect
error code in some cases. This patch fixes that, and also removes
the (unused) return value for glock dumping.

>        * gfs2_iget() - ENOBUFS instead of ENOMEM.  ENOBUFS is
> "No buffer space available (POSIX.1 (XSI STREAMS option))" and since
> we don't support STREAMS it's probably fair game, but... what the hell?

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
fs/gfs2/glock.c
fs/gfs2/glock.h
fs/gfs2/glops.c
fs/gfs2/incore.h
fs/gfs2/inode.c
fs/gfs2/ops_fstype.c
fs/gfs2/rgrp.c
fs/gfs2/rgrp.h

diff --cc fs/gfs2/glock.c
Simple merge
diff --cc fs/gfs2/glock.h
Simple merge
diff --cc fs/gfs2/glops.c
Simple merge
Simple merge
diff --cc fs/gfs2/inode.c
Simple merge
Simple merge
diff --cc fs/gfs2/rgrp.c
Simple merge
diff --cc fs/gfs2/rgrp.h
Simple merge