Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * NILFS direct block pointer.
0004  *
0005  * Copyright (C) 2006-2008 Nippon Telegraph and Telephone Corporation.
0006  *
0007  * Written by Koji Sato.
0008  */
0009 
0010 #ifndef _NILFS_DIRECT_H
0011 #define _NILFS_DIRECT_H
0012 
0013 #include <linux/types.h>
0014 #include <linux/buffer_head.h>
0015 #include "bmap.h"
0016 
0017 
0018 #define NILFS_DIRECT_NBLOCKS    (NILFS_BMAP_SIZE / sizeof(__le64) - 1)
0019 #define NILFS_DIRECT_KEY_MIN    0
0020 #define NILFS_DIRECT_KEY_MAX    (NILFS_DIRECT_NBLOCKS - 1)
0021 
0022 
0023 int nilfs_direct_init(struct nilfs_bmap *);
0024 int nilfs_direct_delete_and_convert(struct nilfs_bmap *, __u64, __u64 *,
0025                     __u64 *, int);
0026 
0027 
0028 #endif  /* _NILFS_DIRECT_H */