15 #include <asm/uaccess.h>
52 fs_err(sdp,
"about to withdraw this file system\n");
58 fs_err(sdp,
"telling LM to unmount\n");
61 fs_err(sdp,
"withdrawn\n");
78 const char *
function,
char *
file,
unsigned int line)
82 "GFS2: fsid=%s: fatal: assertion \"%s\" failed\n"
83 "GFS2: fsid=%s: function = %s, file = %s, line = %u\n",
87 return (me) ? -1 : -2;
97 const char *
function,
char *
file,
unsigned int line)
106 "GFS2: fsid=%s: warning: assertion \"%s\" failed\n"
107 "GFS2: fsid=%s: function = %s, file = %s, line = %u\n",
117 panic(
"GFS2: fsid=%s: warning: assertion \"%s\" failed\n"
118 "GFS2: fsid=%s: function = %s, file = %s, line = %u\n",
138 "GFS2: fsid=%s: fatal: filesystem consistency error\n"
139 "GFS2: fsid=%s: function = %s, file = %s, line = %u\n",
152 const char *
function,
char *
file,
unsigned int line)
157 "GFS2: fsid=%s: fatal: filesystem consistency error\n"
158 "GFS2: fsid=%s: inode = %llu %llu\n"
159 "GFS2: fsid=%s: function = %s, file = %s, line = %u\n",
174 const char *
function,
char *
file,
unsigned int line)
179 "GFS2: fsid=%s: fatal: filesystem consistency error\n"
180 "GFS2: fsid=%s: RG = %llu\n"
181 "GFS2: fsid=%s: function = %s, file = %s, line = %u\n",
195 const char *
type,
const char *
function,
char *
file,
200 "GFS2: fsid=%s: fatal: invalid metadata block\n"
201 "GFS2: fsid=%s: bh = %llu (%s)\n"
202 "GFS2: fsid=%s: function = %s, file = %s, line = %u\n",
204 sdp->
sd_fsname, (
unsigned long long)bh->b_blocknr, type,
206 return (me) ? -1 : -2;
221 "GFS2: fsid=%s: fatal: invalid metadata block\n"
222 "GFS2: fsid=%s: bh = %llu (type: exp=%u, found=%u)\n"
223 "GFS2: fsid=%s: function = %s, file = %s, line = %u\n",
225 sdp->
sd_fsname, (
unsigned long long)bh->b_blocknr, type, t,
227 return (me) ? -1 : -2;
241 "GFS2: fsid=%s: fatal: I/O error\n"
242 "GFS2: fsid=%s: function = %s, file = %s, line = %u\n",
255 const char *
function,
char *
file,
unsigned int line)
259 "GFS2: fsid=%s: fatal: I/O error\n"
260 "GFS2: fsid=%s: block = %llu\n"
261 "GFS2: fsid=%s: function = %s, file = %s, line = %u\n",
263 sdp->
sd_fsname, (
unsigned long long)bh->b_blocknr,
269 unsigned int bit,
int new_value)
271 unsigned int c, o,
b =
bit;
279 old_value = (bitmap[
c][o] & (1 <<
b));
283 bitmap[
c][o] |= 1 <<
b;
285 bitmap[
c][o] &= ~(1 <<
b);