ocfs2: add errno and macro definitions
PATCH 26/28 ocfs2: add errno and macro definitions
From: Gang He <[email protected]>
Subject: ocfs2: add errno and macro definitions
Add new errno, macro definitions and header file inclusion, which will be used for file extent block online check.
Signed-off-by Gang He <[email protected]>
Cc Mark Fasheh <[email protected]>
Cc Joel Becker <[email protected]>
Cc Goldwyn Rodrigues <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/ocfs2/filecheck.c | 4 ++++ fs/ocfs2/filecheck.h | 1 + fs/ocfs2/journal.h | 3 +++ 3 files changed, 8 insertions(+)
fs/ocfs2/filecheck.c renamed from fs/ocfs2/filecheck.c~ocfs2-add-errno-and-macro-definitions +4 -0
@@ -31,7 +31,10 @@#include "ocfs2.h" #include "ocfs2_fs.h" #include "stackglue.h" +#include "dlmglue.h" #include "inode.h" +#include "alloc.h" +#include "journal.h" #include "filecheck.h"
@@ -45,6 +48,7 @@ static const char * const ocfs2_filechec"INPROGRESS" ,"READONLY" ,"INVALIDINO" , +"INVALIDEXT" ,"BLOCKECC" ,"BLOCKNO" , "VALIDFLAG",
fs/ocfs2/filecheck.h renamed from fs/ocfs2/filecheck.h~ocfs2-add-errno-and-macro-definitions +1 -0
@@ -32,6 +32,7 @@ enum {OCFS2_FILECHECK_ERR_INPROGRESS ,/* In progress */ OCFS2_FILECHECK_ERR_READONLY ,/* Read only */ OCFS2_FILECHECK_ERR_INVALIDINO ,/* Invalid ino */ +OCFS2_FILECHECK_ERR_INVALIDEXT ,/* Invalid extent block */ OCFS2_FILECHECK_ERR_BLOCKECC ,/* Block ecc */ OCFS2_FILECHECK_ERR_BLOCKNO ,/* Block number */ OCFS2_FILECHECK_ERR_VALIDFLAG, /* Inode valid flag */
fs/ocfs2/journal.h renamed from fs/ocfs2/journal.h~ocfs2-add-errno-and-macro-definitions +3 -0
@@ -350,6 +350,9 @@ void ocfs2_journal_dirty(handle_t *handl/* simple file updates like chmod, etc. */ #define OCFS2_INODE_UPDATE_CREDITS 1 +/* extent block update */ +#define OCFS2_EXTENT_BLOCK_UPDATE_CREDITS 1 +/* extended attribute block update */ #define OCFS2_XATTR_BLOCK_UPDATE_CREDITS 1
_