Whamcloud - gitweb
Land b_ldiskfs_gate onto HEAD (20081218_1420)
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / ext3-fiemap-2.6.22-vanilla.patch
1 A large part of this code is from the generic VFS code in fs/ioctl.c in the
2 upstream kernel.
3
4 Index: linux-2.6.22.14/fs/ext3/ioctl.c
5 ===================================================================
6 --- linux-2.6.22.14.orig/fs/ext3/ioctl.c
7 +++ linux-2.6.22.14/fs/ext3/ioctl.c
8 @@ -17,6 +17,159 @@
9  #include <linux/smp_lock.h>
10  #include <asm/uaccess.h>
11  #include <linux/namei.h>
12 +#include "fiemap.h"
13 +
14 +/* So that the fiemap access checks can't overflow on 32 bit machines. */
15 +#define FIEMAP_MAX_EXTENTS     (UINT_MAX / sizeof(struct fiemap_extent))
16 +
17 +/**
18 + * fiemap_fill_next_extent - Fiemap helper function
19 + * @fieinfo:   Fiemap context passed into ->fiemap
20 + * @logical:   Extent logical start offset, in bytes
21 + * @phys:      Extent physical start offset, in bytes
22 + * @len:       Extent length, in bytes
23 + * @flags:     FIEMAP_EXTENT flags that describe this extent
24 + * @lun:       LUN on which this extent resides
25 + *
26 + * Called from file system ->fiemap callback. Will populate extent
27 + * info as passed in via arguments and copy to user memory. On
28 + * success, extent count on fieinfo is incremented.
29 + *
30 + * Returns 0 on success, -errno on error, 1 if this was the last
31 + * extent that will fit in user array.
32 + */
33 +#define SET_UNKNOWN_FLAGS      (FIEMAP_EXTENT_DELALLOC)
34 +#define SET_NO_DIRECT_FLAGS    (FIEMAP_EXTENT_DATA_COMPRESSED  \
35 +                               |FIEMAP_EXTENT_DATA_ENCRYPTED   \
36 +                               |FIEMAP_EXTENT_NET)
37 +#define SET_NOT_ALIGNED_FLAGS  (FIEMAP_EXTENT_DATA_TAIL|FIEMAP_EXTENT_DATA_INLINE)
38 +int fiemap_fill_next_extent(struct fiemap_extent_info *fieinfo, u64 logical,
39 +                           u64 phys, u64 len, u32 flags, dev_t dev)
40 +{
41 +       struct fiemap_extent extent = { 0 };
42 +       struct fiemap_extent *dest = fieinfo->fi_extents_start;
43 +
44 +       /* only count the extents */
45 +       if (fieinfo->fi_extents_max == 0) {
46 +                fieinfo->fi_extents_mapped++;
47 +                return (flags & FIEMAP_EXTENT_LAST) ? 1 : 0;
48 +       }
49 +
50 +       if (fieinfo->fi_extents_mapped >= fieinfo->fi_extents_max)
51 +                return 1;
52 +
53 +       if (flags & SET_UNKNOWN_FLAGS)
54 +                flags |= FIEMAP_EXTENT_UNKNOWN;
55 +       if (flags & SET_NO_DIRECT_FLAGS)
56 +                flags |= FIEMAP_EXTENT_NO_DIRECT;
57 +       if (flags & SET_NOT_ALIGNED_FLAGS)
58 +                flags |= FIEMAP_EXTENT_NOT_ALIGNED;
59 +
60 +       extent.fe_logical = logical;
61 +       extent.fe_physical = phys;
62 +       extent.fe_length = len;
63 +       extent.fe_flags = flags;
64 +       extent.fe_device = new_encode_dev(dev);
65 +
66 +       dest += fieinfo->fi_extents_mapped;
67 +       if (copy_to_user(dest, &extent, sizeof(extent)))
68 +                return -EFAULT;
69 +
70 +       fieinfo->fi_extents_mapped++;
71 +       if (fieinfo->fi_extents_mapped == fieinfo->fi_extents_max)
72 +                return 1;
73 +
74 +       return (flags & FIEMAP_EXTENT_LAST) ? 1 : 0;
75 +}
76 +
77 +static int fiemap_check_ranges(struct super_block *sb,
78 +                              u64 start, u64 len, u64 *new_len)
79 +{
80 +       *new_len = len;
81 +
82 +       if (len == 0)
83 +               return -EINVAL;
84 +
85 +       if (start > sb->s_maxbytes)
86 +               return -EFBIG;
87 +
88 +       /*
89 +        * Shrink request scope to what the fs can actually handle.
90 +        */
91 +       if ((len > sb->s_maxbytes) ||
92 +           (sb->s_maxbytes - len) < start)
93 +               *new_len = sb->s_maxbytes - start;
94 +
95 +       return 0;
96 +}
97 +
98 +/*
99 + * fiemap_check_flags - check validity of requested flags for fiemap
100 + * @fieinfo:   Fiemap context passed into ->fiemap
101 + * @fs_flags:  Set of fiemap flags that the file system understands
102 + *
103 + * Called from file system ->fiemap callback. This will compute the
104 + * intersection of valid fiemap flags and those that the fs supports. That
105 + * value is then compared against the user supplied flags. In case of bad user
106 + * flags, the invalid values will be written into the fieinfo structure, and
107 + * -EBADR is returned, which tells ioctl_fiemap() to return those values to
108 + * userspace. For this reason, a return code of -EBADR should be preserved.
109 + *
110 + * Returns 0 on success, -EBADR on bad flags.
111 +*/
112 +int fiemap_check_flags(struct fiemap_extent_info *fieinfo, u32 fs_flags)
113 +{
114 +       u32 incompat_flags;
115 +
116 +       incompat_flags = fieinfo->fi_flags & ~(FIEMAP_FLAGS_COMPAT & fs_flags);
117 +       if (incompat_flags) {
118 +               fieinfo->fi_flags = incompat_flags;
119 +               return -EBADR;
120 +       }
121 +
122 +       return 0;
123 +}
124 +
125 +int ioctl_fiemap(struct inode *inode, struct file *filp, unsigned long arg)
126 +{
127 +       struct fiemap fiemap;
128 +       u64 len;
129 +       struct fiemap_extent_info fieinfo = {0, };
130 +       struct super_block *sb = inode->i_sb;
131 +       int error = 0;
132 +
133 +       if (copy_from_user(&fiemap, (struct fiemap __user *) arg,
134 +                            sizeof(struct fiemap)))
135 +                return -EFAULT;
136 +
137 +       if (fiemap.fm_extent_count > FIEMAP_MAX_EXTENTS)
138 +                return -EINVAL;
139 +
140 +       error = fiemap_check_ranges(sb, fiemap.fm_start, fiemap.fm_length,
141 +                                   &len);
142 +       if (error)
143 +               return error;
144 +
145 +       fieinfo.fi_flags = fiemap.fm_flags;
146 +       fieinfo.fi_extents_max = fiemap.fm_extent_count;
147 +       fieinfo.fi_extents_start = (struct fiemap_extent *)(arg + sizeof(fiemap));
148 +
149 +       if (fiemap.fm_extent_count != 0 &&
150 +           !access_ok(VERIFY_WRITE, (void *)arg,
151 +                      offsetof(typeof(fiemap), fm_extents[fiemap.fm_extent_count])))
152 +                      return -EFAULT;
153 +
154 +       if (fieinfo.fi_flags & FIEMAP_FLAG_SYNC)
155 +               filemap_write_and_wait(inode->i_mapping);
156 +
157 +       error = ext3_fiemap(inode, &fieinfo, fiemap.fm_start, len);
158 +       fiemap.fm_flags = fieinfo.fi_flags;
159 +       fiemap.fm_mapped_extents = fieinfo.fi_extents_mapped;
160 +       if (copy_to_user((char *)arg, &fiemap, sizeof(fiemap)))
161 +               error = -EFAULT;
162 +
163 +       return error;
164 +}
165  
166  int ext3_ioctl (struct inode * inode, struct file * filp, unsigned int cmd,
167                 unsigned long arg)
168 @@ -274,7 +427,9 @@ flags_err:
169  
170                 return err;
171         }
172 -
173 +       case EXT3_IOC_FIEMAP: {
174 +               return ioctl_fiemap(inode, filp, arg);
175 +       }
176  
177         default:
178                 return -ENOTTY;
179 Index: linux-2.6.22.14/include/linux/ext3_fs.h
180 ===================================================================
181 --- linux-2.6.22.14.orig/include/linux/ext3_fs.h
182 +++ linux-2.6.22.14/include/linux/ext3_fs.h
183 @@ -254,15 +254,16 @@ struct ext3_new_group_data {
184  #define        EXT3_IOC_SETFLAGS               FS_IOC_SETFLAGS
185  #define        EXT3_IOC_GETVERSION             _IOR('f', 3, long)
186  #define        EXT3_IOC_SETVERSION             _IOW('f', 4, long)
187 +#define EXT3_IOC_GETRSVSZ              _IOR('f', 5, long)
188 +#define EXT3_IOC_SETRSVSZ              _IOW('f', 6, long)
189  #define EXT3_IOC_GROUP_EXTEND          _IOW('f', 7, unsigned long)
190  #define EXT3_IOC_GROUP_ADD             _IOW('f', 8,struct ext3_new_group_input)
191 +#define        EXT3_IOC_FIEMAP                 _IOWR('f', 10, struct fiemap)
192  #define        EXT3_IOC_GETVERSION_OLD         FS_IOC_GETVERSION
193  #define        EXT3_IOC_SETVERSION_OLD         FS_IOC_SETVERSION
194  #ifdef CONFIG_JBD_DEBUG
195  #define EXT3_IOC_WAIT_FOR_READONLY     _IOR('f', 99, long)
196  #endif
197 -#define EXT3_IOC_GETRSVSZ              _IOR('f', 5, long)
198 -#define EXT3_IOC_SETRSVSZ              _IOW('f', 6, long)
199  
200  /*
201   * ioctl commands in 32 bit emulation
202 @@ -280,6 +281,8 @@ struct ext3_new_group_data {
203  #define EXT3_IOC32_GETVERSION_OLD      FS_IOC32_GETVERSION
204  #define EXT3_IOC32_SETVERSION_OLD      FS_IOC32_SETVERSION
205  
206 +/* FIEMAP flags supported by ext3 */
207 +#define        EXT3_FIEMAP_FLAGS_COMPAT (FIEMAP_FLAG_SYNC)
208  
209  /*
210   *  Mount options
211 @@ -1056,6 +1059,9 @@ extern int ext3_block_truncate_page(hand
212  extern int ext3_ioctl (struct inode *, struct file *, unsigned int,
213                        unsigned long);
214  extern long ext3_compat_ioctl (struct file *, unsigned int, unsigned long);
215 +struct fiemap_extent_info;
216 +extern int ext3_fiemap(struct inode *, struct fiemap_extent_info *, __u64,
217 +                       __u64);
218  
219  /* namei.c */
220  extern int ext3_orphan_add(handle_t *, struct inode *);
221 @@ -1133,7 +1139,6 @@ ext3_get_blocks_wrap(handle_t *handle, s
222         return ret;
223  }
224  
225 -
226  #endif /* __KERNEL__ */
227  
228  /* EXT3_IOC_CREATE_INUM at bottom of file (visible to kernel and user). */
229 Index: linux-2.6.22.14/include/linux/ext3_extents.h
230 ===================================================================
231 --- linux-2.6.22.14.orig/include/linux/ext3_extents.h
232 +++ linux-2.6.22.14/include/linux/ext3_extents.h
233 @@ -142,8 +142,10 @@ struct ext3_ext_path {
234   * callback must return valid extent (passed or newly created)
235   */
236  typedef int (*ext_prepare_callback)(struct inode *, struct ext3_ext_path *,
237 -                                       struct ext3_ext_cache *,
238 -                                       void *);
239 +                                   struct ext3_ext_cache *,
240 +                                   struct ext3_extent *, void *);
241 +
242 +#define HAVE_EXT_PREPARE_CB_EXTENT
243  
244  #define EXT_CONTINUE   0
245  #define EXT_BREAK      1
246 @@ -152,6 +154,26 @@ typedef int (*ext_prepare_callback)(stru
247  
248  #define EXT_MAX_BLOCK  0xffffffff
249  
250 +/*
251 + * EXT_INIT_MAX_LEN is the maximum number of blocks we can have in an
252 + * initialized extent. This is 2^15 and not (2^16 - 1), since we use the
253 + * MSB of ee_len field in the extent datastructure to signify if this
254 + * particular extent is an initialized extent or an uninitialized (i.e.
255 + * preallocated).
256 + * EXT_UNINIT_MAX_LEN is the maximum number of blocks we can have in an
257 + * uninitialized extent.
258 + * If ee_len is <= 0x8000, it is an initialized extent. Otherwise, it is an
259 + * uninitialized one. In other words, if MSB of ee_len is set, it is an
260 + * uninitialized extent with only one special scenario when ee_len = 0x8000.
261 + * In this case we can not have an uninitialized extent of zero length and
262 + * thus we make it as a special case of initialized extent with 0x8000 length.
263 + * This way we get better extent-to-group alignment for initialized extents.
264 + * Hence, the maximum number of blocks we can have in an *initialized*
265 + * extent is 2^15 (32768) and in an *uninitialized* extent is 2^15-1 (32767).
266 + */
267 +#define EXT_INIT_MAX_LEN       (1UL << 15)
268 +#define EXT_UNINIT_MAX_LEN     (EXT_INIT_MAX_LEN - 1)
269 +
270  #define EXT_FLAGS_CLR_UNKNOWN  0x7  /* Flags cleared on modification */
271  #define EXT_HDR_GEN_BITS       24
272  #define EXT_HDR_GEN_MASK       ((1 << EXT_HDR_GEN_BITS) - 1)
273 @@ -219,6 +241,12 @@ ext3_ext_invalidate_cache(struct inode *
274         EXT3_I(inode)->i_cached_extent.ec_type = EXT3_EXT_CACHE_NO;
275  }
276  
277 +static inline int ext3_ext_is_uninitialized(struct ext3_extent *ext)
278 +{
279 +       /* Extent with ee_len of 0x8000 is treated as an initialized extent */
280 +       return (le16_to_cpu(ext->ee_len) > EXT_INIT_MAX_LEN);
281 +}
282 +
283  extern int ext3_ext_search_left(struct inode *, struct ext3_ext_path *, unsigned long *, unsigned long *);
284  extern int ext3_ext_search_right(struct inode *, struct ext3_ext_path *, unsigned long *, unsigned long *);
285  extern int ext3_extent_tree_init(handle_t *, struct inode *);
286 Index: linux-2.6.22.14/fs/ext3/extents.c
287 ===================================================================
288 --- linux-2.6.22.14.orig/fs/ext3/extents.c
289 +++ linux-2.6.22.14/fs/ext3/extents.c
290 @@ -41,6 +41,7 @@
291  #include <linux/string.h>
292  #include <linux/slab.h>
293  #include <linux/ext3_extents.h>
294 +#include "fiemap.h"
295  #include <asm/uaccess.h>
296  
297  
298 @@ -1481,7 +1482,7 @@ int ext3_ext_walk_space(struct inode *in
299                 }
300  
301                 BUG_ON(cbex.ec_len == 0);
302 -               err = func(inode, path, &cbex, cbdata);
303 +               err = func(inode, path, &cbex, ex, cbdata);
304                 ext3_ext_drop_refs(path);
305  
306                 if (err < 0)
307 @@ -2296,6 +2297,103 @@ int ext3_ext_writepage_trans_blocks(stru
308         return needed;
309  }
310  
311 +/*
312 + * Callback function called for each extent to gather FIEMAP information.
313 + */
314 +int ext3_ext_fiemap_cb(struct inode *inode, struct ext3_ext_path *path,
315 +                      struct ext3_ext_cache *newex, struct ext3_extent *ex,
316 +                      void *data)
317 +{
318 +       struct fiemap_extent_info *fieinfo = data;
319 +       unsigned long blksize_bits = inode->i_sb->s_blocksize_bits;
320 +       __u64   logical;
321 +       __u64   physical;
322 +       __u64   length;
323 +       __u32   flags = 0;
324 +       int     error;
325 +
326 +       logical =  (__u64)newex->ec_block << blksize_bits;
327 +
328 +       if (newex->ec_type == EXT3_EXT_CACHE_GAP) {
329 +               pgoff_t offset;
330 +               struct page *page;
331 +               struct buffer_head *bh = NULL;
332 +
333 +               offset = logical >> PAGE_SHIFT;
334 +               page = find_get_page(inode->i_mapping, offset);
335 +               if (!page || !page_has_buffers(page))
336 +                       return EXT_CONTINUE;
337 +
338 +               bh = page_buffers(page);
339 +
340 +               if (!bh)
341 +                       return EXT_CONTINUE;
342 +
343 +               if (buffer_delay(bh)) {
344 +                       flags |= FIEMAP_EXTENT_DELALLOC;
345 +                       page_cache_release(page);
346 +               } else {
347 +                       page_cache_release(page);
348 +                       return EXT_CONTINUE;
349 +               }
350 +       }
351 +
352 +       physical = (__u64)newex->ec_start << blksize_bits;
353 +       length =   (__u64)newex->ec_len << blksize_bits;
354 +
355 +       if (ex && ext3_ext_is_uninitialized(ex))
356 +               flags |= FIEMAP_EXTENT_UNWRITTEN;
357 +
358 +       /*
359 +        * If this extent reaches EXT_MAX_BLOCK, it must be last.
360 +        *
361 +        * Or if ext3_ext_next_allocated_block is EXT_MAX_BLOCK,
362 +        * this indicates no more allocated blocks.
363 +        *
364 +        * XXX this might miss a single-block extent at EXT_MAX_BLOCK
365 +        */
366 +       if (logical + length - 1 == EXT_MAX_BLOCK ||
367 +           ext3_ext_next_allocated_block(path) == EXT_MAX_BLOCK)
368 +               flags |= FIEMAP_EXTENT_LAST;
369 +
370 +       error = fiemap_fill_next_extent(fieinfo, logical, physical,
371 +                                       length, flags, inode->i_sb->s_dev);
372 +       if (error < 0)
373 +               return error;
374 +       if (error == 1)
375 +               return EXT_BREAK;
376 +
377 +       return EXT_CONTINUE;
378 +}
379 +
380 +int ext3_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
381 +               __u64 start, __u64 len)
382 +{
383 +       ext3_fsblk_t start_blk;
384 +       ext3_fsblk_t len_blks;
385 +       int error = 0;
386 +
387 +       if (!(EXT3_I(inode)->i_flags & EXT3_EXTENTS_FL))
388 +               return -EOPNOTSUPP;
389 +
390 +       if (fiemap_check_flags(fieinfo, EXT3_FIEMAP_FLAGS_COMPAT))
391 +               return -EBADR;
392 +
393 +       start_blk = start >> inode->i_sb->s_blocksize_bits;
394 +       len_blks = (len + inode->i_sb->s_blocksize - 1) >> inode->i_sb->s_blocksize_bits;
395 +
396 +       /*
397 +         * Walk the extent tree gathering extent information.
398 +         * ext3_ext_fiemap_cb will push extents back to user.
399 +         */
400 +       mutex_lock(&EXT3_I(inode)->truncate_mutex);
401 +       error = ext3_ext_walk_space(inode, start_blk, len_blks,
402 +                                 ext3_ext_fiemap_cb, fieinfo);
403 +       mutex_unlock(&EXT3_I(inode)->truncate_mutex);
404 +
405 +       return error;
406 +}
407 +
408  EXPORT_SYMBOL(ext3_mark_inode_dirty);
409  EXPORT_SYMBOL(ext3_ext_invalidate_cache);
410  EXPORT_SYMBOL(ext3_ext_insert_extent);
411 Index: linux-2.6.22.14/fs/ext3/fiemap.h
412 ===================================================================
413 --- /dev/null
414 +++ linux-2.6.22.14/fs/ext3/fiemap.h
415 @@ -0,0 +1,84 @@
416 +/*
417 + * FIEMAP ioctl infrastructure.
418 + *
419 + * Copyright 2008 Sun Microsystems, Inc.
420 + *
421 + * Author: Kalpak Shah <kalpak.shah@sun.com>
422 + *         Andreas Dilger <adilger@sun.com>
423 + */
424 +
425 +#ifndef _LINUX_EXT3_FIEMAP_H
426 +#define _LINUX_EXT3_FIEMAP_H
427 +
428 +struct fiemap_extent {
429 +       __u64 fe_logical;  /* logical offset in bytes for the start of
430 +                           * the extent from the beginning of the file */
431 +       __u64 fe_physical; /* physical offset in bytes for the start
432 +                           * of the extent from the beginning of the disk */
433 +       __u64 fe_length;   /* length in bytes for this extent */
434 +       __u32 fe_flags;    /* FIEMAP_EXTENT_* flags for this extent */
435 +       __u32 fe_device;   /* device number for this extent */
436 +};
437 +
438 +struct fiemap {
439 +       __u64 fm_start;  /* logical offset (inclusive) at
440 +                                * which to start mapping (in) */
441 +       __u64 fm_length;        /* logical length of mapping which
442 +                                * userspace wants (in) */
443 +       __u32 fm_flags;  /* FIEMAP_FLAG_* flags for request (in/out) */
444 +       __u32 fm_mapped_extents;/* number of extents that were mapped (out) */
445 +       __u32 fm_extent_count;  /* size of fm_extents array (in) */
446 +       __u32 fm_reserved;
447 +       struct fiemap_extent fm_extents[0]; /* array of mapped extents (out) */
448 +};
449 +
450 +/*
451 + * FIEMAP helper definition.
452 + */
453 +struct fiemap_extent_info {
454 +       unsigned int    fi_flags;               /* Flags as passed from user */
455 +       unsigned int    fi_extents_mapped;      /* Number of mapped extents */
456 +       unsigned int    fi_extents_max;         /* Size of fiemap_extent array*/
457 +       struct fiemap_extent *fi_extents_start; /* Start of fiemap_extent array */
458 +};
459 +
460 +int fiemap_check_flags(struct fiemap_extent_info *fieinfo, u32 fs_flags);
461 +int fiemap_fill_next_extent(struct fiemap_extent_info *info, u64 logical,
462 +                           u64 phys, u64 len, u32 flags, u32 lun);
463 +
464 +#define        FIEMAP_MAX_OFFSET       (~0ULL)
465 +
466 +#define        FIEMAP_FLAG_SYNC        0x00000001 /* sync file data before map */
467 +#define        FIEMAP_FLAG_XATTR       0x00000002 /* map extended attribute tree */
468 +
469 +/* ldiskfs only supports FLAG_SYNC flag currently */
470 +#define FIEMAP_FLAGS_COMPAT (FIEMAP_FLAG_SYNC | FIEMAP_FLAG_XATTR)
471 +
472 +
473 +#define FIEMAP_EXTENT_LAST             0x00000001 /* Last extent in file. */
474 +#define FIEMAP_EXTENT_UNKNOWN          0x00000002 /* Data location unknown. */
475 +#define FIEMAP_EXTENT_DELALLOC         0x00000004 /* Location still pending.
476 +                                                  * Sets EXTENT_UNKNOWN. */
477 +#define FIEMAP_EXTENT_NO_DIRECT                0x00000008 /* Data mapping undefined */
478 +#define FIEMAP_EXTENT_SECONDARY                0x00000010 /* Data copied offline. May
479 +                                                  * set EXTENT_NO_DIRECT. */
480 +#define FIEMAP_EXTENT_NET              0x00000020 /* Data stored remotely.
481 +                                                  * Sets EXTENT_NO_DIRECT. */
482 +#define FIEMAP_EXTENT_DATA_COMPRESSED  0x00000040 /* Data is compressed by fs.
483 +                                                  * Sets EXTENT_NO_DIRECT. */
484 +#define FIEMAP_EXTENT_DATA_ENCRYPTED   0x00000080 /* Data is encrypted by fs.
485 +                                                  * Sets EXTENT_NO_DIRECT. */
486 +#define FIEMAP_EXTENT_NOT_ALIGNED      0x00000100 /* Extent offsets may not be
487 +                                                  * block aligned. */
488 +#define FIEMAP_EXTENT_DATA_INLINE      0x00000200 /* Data mixed with metadata.
489 +                                                  * Sets EXTENT_NOT_ALIGNED.*/
490 +#define FIEMAP_EXTENT_DATA_TAIL                0x00000400 /* Multiple files in block.
491 +                                                  * Sets EXTENT_NOT_ALIGNED.*/
492 +#define FIEMAP_EXTENT_UNWRITTEN                0x00000800 /* Space allocated, but
493 +                                                  * no data (i.e. zero). */
494 +#define FIEMAP_EXTENT_MERGED           0x00001000 /* File does not natively
495 +                                                  * support extents. Result
496 +                                                  * merged for efficiency. */
497 +
498 +#endif /* _LINUX_EXT3_FIEMAP_H */
499 +