text stringlengths 213 7.14k | idx int64 16 12.5k |
|---|---|
--- initial
+++ final
@@ -1,86 +1,82 @@
static int raw_setsockopt(struct socket *sock, int level, int optname, char __user *optval, unsigned int optlen) {
struct sock *sk = sock->sk;
struct raw_sock *ro = raw_sk(sk);
struct can_filter *filter = NULL; /* dyn. alloc'ed filters */
struct can_filter sfilter; ... | 98 |
--- initial
+++ final
@@ -1,24 +1,20 @@
static int get_filter(void __user *arg, struct sock_filter **p) {
struct sock_fprog uprog;
struct sock_filter *code = NULL;
int len, err;
if (copy_from_user(&uprog, arg, sizeof(uprog))) return -EFAULT;
if (!uprog.len) {
*p = NULL;
return 0;
}
len =... | 99 |
--- initial
+++ final
@@ -1,26 +1,22 @@
static int sdla_xfer(struct net_device *dev, struct sdla_mem __user *info, int read) {
struct sdla_mem mem;
char *temp;
if (copy_from_user(&mem, info, sizeof(mem))) return -EFAULT;
if (read) {
temp = kzalloc(mem.len, GFP_KERNEL);
if (!temp) return (-ENOME... | 101 |
--- initial
+++ final
@@ -1,17 +1,13 @@
static int dccp_setsockopt_ccid(struct sock *sk, int type, char __user *optval, unsigned int optlen) {
u8 *val;
int rc = 0;
if (optlen < 1 || optlen > DCCP_FEAT_MAX_SP_VALS) return -EINVAL;
- val = kmalloc(optlen, GFP_KERNEL);
- if (val == NULL) return -ENOMEM;
- if ... | 102 |
--- initial
+++ final
@@ -1,100 +1,96 @@
static int fst_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) {
struct fst_card_info *card;
struct fst_port_info *port;
struct fstioc_write wrthdr;
struct fstioc_info info;
unsigned long flags;
void *buf;
dbg(DBG_IOCTL, "ioctl: %x, %p\n", cmd, if... | 103 |
--- initial
+++ final
@@ -1,58 +1,54 @@
static int pcbit_writecmd(const u_char __user *buf, int len, int driver, int channel) {
struct pcbit_dev *dev;
int i, j;
const u_char *loadbuf;
u_char *ptr = NULL;
u_char *cbuf;
int errstat;
dev = finddev(driver);
if (!dev) {
printk("pcbit_writecmd: ... | 104 |
--- initial
+++ final
@@ -1,25 +1,21 @@
static int get_filter(void __user *arg, struct sock_filter **p) {
struct sock_fprog uprog;
struct sock_filter *code = NULL;
int len, err;
if (copy_from_user(&uprog, arg, sizeof(uprog))) return -EFAULT;
if (!uprog.len) {
*p = NULL;
return 0;
}
/* up... | 106 |
--- initial
+++ final
@@ -1,42 +1,37 @@
static long dabusb_ioctl(struct file *file, unsigned int cmd, unsigned long arg) {
pdabusb_t s = (pdabusb_t)file->private_data;
pbulk_transfer_t pbulk;
int ret = 0;
int version = DABUSB_VERSION;
dbg("dabusb_ioctl");
lock_kernel();
if (s->remove_pending) {
... | 107 |
--- initial
+++ final
@@ -1,20 +1,16 @@
static int dvbdmx_write(struct dmx_demux *demux, const char __user *buf, size_t count) {
struct dvb_demux *dvbdemux = (struct dvb_demux *)demux;
void *p;
if ((!demux->frontend) || (demux->frontend->source != DMX_MEMORY_FE)) return -EINVAL;
- p = kmalloc(count, GFP_USER... | 108 |
--- initial
+++ final
@@ -1,13 +1,9 @@
static int ib_ucm_alloc_data(const void **dest, u64 src, u32 len) {
void *data;
*dest = NULL;
if (!len) return 0;
- data = kmalloc(len, GFP_KERNEL);
- if (!data) return -ENOMEM;
- if (copy_from_user(data, (void __user *)(unsigned long)src, len)) {
- kfree(data);
- ... | 109 |
--- initial
+++ final
@@ -1,30 +1,26 @@
static int mtd_do_writeoob(struct file *file, struct mtd_info *mtd, uint64_t start, uint32_t length, void __user *ptr, uint32_t __user *retp) {
struct mtd_oob_ops ops;
uint32_t retlen;
int ret = 0;
if (!(file->f_mode & FMODE_WRITE)) return -EPERM;
if (length > 409... | 110 |
--- initial
+++ final
@@ -1,54 +1,50 @@
static int prism54_hostapd(struct net_device *ndev, struct iw_point *p) {
struct prism2_hostapd_param *param;
int ret = 0;
u32 uwrq;
printk(KERN_DEBUG "prism54_hostapd - len=%d\n", p->length);
if (p->length < sizeof(struct prism2_hostapd_param) || p->length > PRIS... | 111 |
--- initial
+++ final
@@ -1,70 +1,66 @@
static ssize_t dev_config(struct file *fd, const char __user *buf, size_t len, loff_t *ptr) {
struct dev_data *dev = fd->private_data;
ssize_t value = len, length = len;
unsigned total;
u32 tag;
char *kbuf;
if (len < (USB_DT_CONFIG_SIZE + USB_DT_DEVICE_SIZE + 4... | 112 |
--- initial
+++ final
@@ -1,30 +1,28 @@
static ssize_t ep_write(struct file *fd, const char __user *buf, size_t len, loff_t *ptr) {
struct ep_data *data = fd->private_data;
void *kbuf;
ssize_t value;
if ((value = get_ready_ep(fd->f_flags, data)) < 0) return value;
/* halt any endpoint by doing a "wrong ... | 113 |
--- initial
+++ final
@@ -1,120 +1,108 @@
static int vfe_config(struct msm_vfe_cfg_cmd *cmd, void *data) {
struct msm_pmem_region *regptr;
struct msm_vfe_command_8k vfecmd;
uint32_t i;
void *cmd_data = NULL;
long rc = 0;
struct vfe_cmd_axi_output_config *axio = NULL;
struct vfe_cmd_stats_setting *... | 114 |
--- initial
+++ final
@@ -1,45 +1,41 @@
static int con_font_set(struct vc_data *vc, struct console_font_op *op) {
struct console_font font;
int rc = -EINVAL;
int size;
if (vc->vc_mode != KD_TEXT) return -EINVAL;
if (!op->data) return -EINVAL;
if (op->charcount > 512) return -EINVAL;
if (!op->heigh... | 115 |
--- initial
+++ final
@@ -1,46 +1,42 @@
static int i2o_cfg_parms(unsigned long arg, unsigned int type) {
int ret = 0;
struct i2o_controller *c;
struct i2o_device *dev;
struct i2o_cmd_psetget __user *cmd = (struct i2o_cmd_psetget __user *)arg;
struct i2o_cmd_psetget kcmd;
u32 reslen;
u8 *ops;
u8... | 116 |
--- initial
+++ final
@@ -1,12 +1,8 @@
static struct autofs_dev_ioctl *copy_dev_ioctl(struct autofs_dev_ioctl __user *in) {
struct autofs_dev_ioctl tmp, *ads;
if (copy_from_user(&tmp, in, sizeof(tmp))) return ERR_PTR(-EFAULT);
if (tmp.size < sizeof(tmp)) return ERR_PTR(-EINVAL);
- ads = kmalloc(tmp.size, GFP... | 117 |
--- initial
+++ final
@@ -1,42 +1,37 @@
static int ixj_build_filter_cadence(IXJ *j, IXJ_FILTER_CADENCE __user *cp) {
IXJ_FILTER_CADENCE *lcp;
- lcp = kmalloc(sizeof(IXJ_FILTER_CADENCE), GFP_KERNEL);
- if (lcp == NULL) {
- if (ixjdebug & 0x0001) { printk(KERN_INFO "Could not allocate memory for cadence\n"); }
-... | 119 |
--- initial
+++ final
@@ -1,117 +1,113 @@
static long ac_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
{ /* @ ADG ou ATO selon le cas */
int i;
unsigned char IndexCard;
void __iomem *pmem;
int ret = 0;
volatile unsigned char byte_reset_it;
struct st_ram_io *adgl;
void __user *ar... | 120 |
--- initial
+++ final
@@ -1,107 +1,95 @@
static int ida_ctlr_ioctl(ctlr_info_t *h, int dsk, ida_ioctl_t *io) {
int ctlr = h->ctlr;
cmdlist_t *c;
void *p = NULL;
unsigned long flags;
int error;
if ((c = cmd_alloc(h, 0)) == NULL) return -ENOMEM;
c->ctlr = ctlr;
c->hdr.unit = (io->unit & UNITVALID... | 121 |
--- initial
+++ final
@@ -1,43 +1,39 @@
int qeth_snmp_command(struct qeth_card *card, char __user *udata) {
struct qeth_cmd_buffer *iob;
struct qeth_ipa_cmd *cmd;
struct qeth_snmp_ureq *ureq;
int req_len;
struct qeth_arp_query_info qinfo = {
0,
};
int rc = 0;
QETH_CARD_TEXT(card, 3, "snm... | 122 |
--- initial
+++ final
@@ -1,15 +1,11 @@
char *strndup_user(const char __user *s, long n) {
char *p;
long length;
length = strnlen_user(s, n);
if (!length) return ERR_PTR(-EFAULT);
if (length > n) return ERR_PTR(-EINVAL);
- p = kmalloc(length, GFP_KERNEL);
- if (!p) return ERR_PTR(-ENOMEM);
- if (copy... | 123 |
--- initial
+++ final
@@ -1,72 +1,68 @@
static int sg_start_req(Sg_request *srp, unsigned char *cmd) {
int res;
struct request *rq;
Sg_fd *sfp = srp->parentfp;
sg_io_hdr_t *hp = &srp->header;
int dxfer_len = (int)hp->dxfer_len;
int dxfer_dir = hp->dxfer_direction;
unsigned int iov_count = hp->iove... | 124 |
--- initial
+++ final
@@ -1,59 +1,55 @@
static noinline int i2cdev_ioctl_rdrw(struct i2c_client *client, unsigned long arg) {
struct i2c_rdwr_ioctl_data rdwr_arg;
struct i2c_msg *rdwr_pa;
u8 __user **data_ptrs;
int i, res;
if (copy_from_user(&rdwr_arg, (struct i2c_rdwr_ioctl_data __user *)arg, sizeof(rd... | 125 |
--- initial
+++ final
@@ -1,16 +1,12 @@
static ssize_t i2cdev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset) {
int ret;
char *tmp;
struct i2c_client *client = file->private_data;
if (count > 8192) count = 8192;
- tmp = kmalloc(count, GFP_KERNEL);
- if (tmp == NULL) return ... | 126 |
--- initial
+++ final
@@ -1,18 +1,14 @@
static noinline int btrfs_ioctl_ino_lookup(struct file *file, void __user *argp) {
struct btrfs_ioctl_ino_lookup_args *args;
struct inode *inode;
int ret;
if (!capable(CAP_SYS_ADMIN)) return -EPERM;
- args = kmalloc(sizeof(*args), GFP_KERNEL);
- if (!args) return -... | 127 |
--- initial
+++ final
@@ -1,17 +1,13 @@
static noinline int btrfs_ioctl_tree_search(struct file *file, void __user *argp) {
struct btrfs_ioctl_search_args *args;
struct inode *inode;
int ret;
if (!capable(CAP_SYS_ADMIN)) return -EPERM;
- args = kmalloc(sizeof(*args), GFP_KERNEL);
- if (!args) return -ENO... | 128 |
--- initial
+++ final
@@ -1,53 +1,54 @@
static int gsta_probe(struct platform_device *dev) {
int i, err;
struct pci_dev *pdev;
struct sta2x11_gpio_pdata *gpio_pdata;
struct gsta_gpio *chip;
struct resource *res;
pdev = *(struct pci_dev **)(dev->dev.platform_data);
gpio_pdata = dev_get_platdata(&pd... | 188 |
--- initial
+++ final
@@ -1,53 +1,54 @@
static int gsta_probe(struct platform_device *dev) {
int i, err;
struct pci_dev *pdev;
struct sta2x11_gpio_pdata *gpio_pdata;
struct gsta_gpio *chip;
struct resource *res;
pdev = *(struct pci_dev **)(dev->dev.platform_data);
gpio_pdata = dev_get_platdata(&pd... | 189 |
--- initial
+++ final
@@ -1,116 +1,116 @@
static int c_can_plat_probe(struct platform_device *pdev) {
int ret;
void __iomem *addr;
struct net_device *dev;
struct c_can_priv *priv;
const struct of_device_id *match;
const struct platform_device_id *id;
struct pinctrl *pinctrl;
struct resource *me... | 190 |
--- initial
+++ final
@@ -1,116 +1,116 @@
static int c_can_plat_probe(struct platform_device *pdev) {
int ret;
void __iomem *addr;
struct net_device *dev;
struct c_can_priv *priv;
const struct of_device_id *match;
const struct platform_device_id *id;
struct pinctrl *pinctrl;
struct resource *me... | 191 |
--- initial
+++ final
@@ -1,7 +1,7 @@
static void __iomem *__init mvebu_pcie_map_registers(struct platform_device *pdev, struct device_node *np, struct mvebu_pcie_port *port) {
struct resource regs;
int ret = 0;
ret = of_address_to_resource(np, 0, ®s);
if (ret) return NULL;
- return devm_request_and_io... | 192 |
--- initial
+++ final
@@ -1,7 +1,7 @@
static void __iomem *__init mvebu_pcie_map_registers(struct platform_device *pdev, struct device_node *np, struct mvebu_pcie_port *port) {
struct resource regs;
int ret = 0;
ret = of_address_to_resource(np, 0, ®s);
if (ret) return NULL;
- return devm_request_and_io... | 193 |
--- initial
+++ final
@@ -1,77 +1,74 @@
static int pxa3xx_gcu_probe(struct platform_device *pdev) {
int i, ret, irq;
struct resource *r;
struct pxa3xx_gcu_priv *priv;
struct device *dev = &pdev->dev;
priv = devm_kzalloc(dev, sizeof(struct pxa3xx_gcu_priv), GFP_KERNEL);
if (!priv) return -ENOMEM;
i... | 200 |
--- initial
+++ final
@@ -1,77 +1,74 @@
static int pxa3xx_gcu_probe(struct platform_device *pdev) {
int i, ret, irq;
struct resource *r;
struct pxa3xx_gcu_priv *priv;
struct device *dev = &pdev->dev;
priv = devm_kzalloc(dev, sizeof(struct pxa3xx_gcu_priv), GFP_KERNEL);
if (!priv) return -ENOMEM;
i... | 201 |
--- initial
+++ final
@@ -1,46 +1,43 @@
static int nbu2ss_drv_probe(struct platform_device *pdev) {
int status = -ENODEV;
struct nbu2ss_udc *udc;
struct resource *r;
int irq;
void __iomem *mmio_base;
udc = &udc_controller;
memset(udc, 0, sizeof(struct nbu2ss_udc));
platform_set_drvdata(pdev, ud... | 204 |
--- initial
+++ final
@@ -1,46 +1,43 @@
static int nbu2ss_drv_probe(struct platform_device *pdev) {
int status = -ENODEV;
struct nbu2ss_udc *udc;
struct resource *r;
int irq;
void __iomem *mmio_base;
udc = &udc_controller;
memset(udc, 0, sizeof(struct nbu2ss_udc));
platform_set_drvdata(pdev, ud... | 205 |
--- initial
+++ final
@@ -1,64 +1,64 @@
int xfs_attr_rmtval_remove(struct xfs_da_args *args) {
struct xfs_mount *mp = args->dp->i_mount;
xfs_dablk_t lblkno;
int blkcnt;
int error;
int done;
trace_xfs_attr_rmtval_remove(args);
/*
* Roll through the "value", invalidating the attribute value's bl... | 206 |
--- initial
+++ final
@@ -1,96 +1,96 @@
int xfs_attr_rmtval_set(struct xfs_da_args *args) {
struct xfs_inode *dp = args->dp;
struct xfs_mount *mp = dp->i_mount;
struct xfs_bmbt_irec map;
xfs_dablk_t lblkno;
xfs_fileoff_t lfileoff = 0;
uint8_t *src = args->value;
int blkcnt;
int valuelen;
int... | 207 |
--- initial
+++ final
@@ -1,147 +1,147 @@
STATIC int xfs_attr_leaf_addname(struct xfs_da_args *args) {
struct xfs_inode *dp;
struct xfs_buf *bp;
int retval, error, forkoff;
trace_xfs_attr_leaf_addname(args);
/*
* Read the (only) block in the attribute list in.
*/
dp = args->dp;
args->blkno... | 208 |
--- initial
+++ final
@@ -1,35 +1,35 @@
STATIC int xfs_attr_leaf_removename(struct xfs_da_args *args) {
struct xfs_inode *dp;
struct xfs_buf *bp;
int error, forkoff;
trace_xfs_attr_leaf_removename(args);
/*
* Remove the attribute.
*/
dp = args->dp;
args->blkno = 0;
error = xfs_attr3_lea... | 209 |
--- initial
+++ final
@@ -1,186 +1,186 @@
STATIC int xfs_attr_node_addname(struct xfs_da_args *args) {
struct xfs_da_state *state;
struct xfs_da_state_blk *blk;
struct xfs_inode *dp;
struct xfs_mount *mp;
int retval, error;
trace_xfs_attr_node_addname(args);
/*
* Fill in bucket of arguments/re... | 210 |
--- initial
+++ final
@@ -1,107 +1,107 @@
STATIC int xfs_attr_node_removename(struct xfs_da_args *args) {
struct xfs_da_state *state;
struct xfs_da_state_blk *blk;
struct xfs_inode *dp;
struct xfs_buf *bp;
int retval, error, forkoff;
trace_xfs_attr_node_removename(args);
/*
* Tie a string arou... | 211 |
--- initial
+++ final
@@ -1,62 +1,61 @@
int xfs_attr_remove(struct xfs_inode *dp, const unsigned char *name, int flags) {
struct xfs_mount *mp = dp->i_mount;
struct xfs_da_args args;
struct xfs_defer_ops dfops;
xfs_fsblock_t firstblock;
int error;
XFS_STATS_INC(mp, xs_attr_remove);
if (XFS_FORCED_... | 212 |
--- initial
+++ final
@@ -1,131 +1,130 @@
int xfs_attr_set(struct xfs_inode *dp, const unsigned char *name, unsigned char *value, int valuelen, int flags) {
struct xfs_mount *mp = dp->i_mount;
struct xfs_buf *leaf_bp = NULL;
struct xfs_da_args args;
struct xfs_defer_ops dfops;
struct xfs_trans_res tres;... | 213 |
--- initial
+++ final
@@ -1,114 +1,113 @@
int xfs_alloc_file_space(struct xfs_inode *ip, xfs_off_t offset, xfs_off_t len, int alloc_type) {
xfs_mount_t *mp = ip->i_mount;
xfs_off_t count;
xfs_filblks_t allocated_fsb;
xfs_filblks_t allocatesize_fsb;
xfs_extlen_t extsz, temp;
xfs_fileoff_t startoffset_... | 214 |
--- initial
+++ final
@@ -1,39 +1,38 @@
int xfs_collapse_file_space(struct xfs_inode *ip, xfs_off_t offset, xfs_off_t len) {
struct xfs_mount *mp = ip->i_mount;
struct xfs_trans *tp;
int error;
struct xfs_defer_ops dfops;
xfs_fsblock_t first_block;
xfs_fileoff_t next_fsb = XFS_B_TO_FSB(mp, offset + l... | 215 |
--- initial
+++ final
@@ -1,43 +1,42 @@
int xfs_insert_file_space(struct xfs_inode *ip, loff_t offset, loff_t len) {
struct xfs_mount *mp = ip->i_mount;
struct xfs_trans *tp;
int error;
struct xfs_defer_ops dfops;
xfs_fsblock_t first_block;
xfs_fileoff_t stop_fsb = XFS_B_TO_FSB(mp, offset);
xfs_fi... | 216 |
--- initial
+++ final
@@ -1,83 +1,83 @@
STATIC int xfs_swap_extent_rmap(struct xfs_trans **tpp, struct xfs_inode *ip, struct xfs_inode *tip) {
struct xfs_trans *tp = *tpp;
struct xfs_mount *mp = tp->t_mountp;
struct xfs_bmbt_irec irec;
struct xfs_bmbt_irec uirec;
struct xfs_bmbt_irec tirec;
xfs_fileo... | 217 |
--- initial
+++ final
@@ -1,33 +1,32 @@
static int xfs_unmap_extent(struct xfs_inode *ip, xfs_fileoff_t startoffset_fsb, xfs_filblks_t len_fsb, int *done) {
struct xfs_mount *mp = ip->i_mount;
struct xfs_trans *tp;
struct xfs_defer_ops dfops;
xfs_fsblock_t firstfsb;
uint resblks = XFS_DIOSTRAT_SPACE_RES... | 219 |
--- initial
+++ final
@@ -1,92 +1,91 @@
int /* error code */
xfs_bmap_add_attrfork(xfs_inode_t *ip, /* incore inode pointer */
int size, /* space new attribute needs */
int rsvd) /* xact may use reserved blks */
{
xfs_f... | 220 |
--- initial
+++ final
@@ -1,22 +1,21 @@
int xfs_bmap_split_extent(struct xfs_inode *ip, xfs_fileoff_t split_fsb) {
struct xfs_mount *mp = ip->i_mount;
struct xfs_trans *tp;
struct xfs_defer_ops dfops;
xfs_fsblock_t firstfsb;
int error;
error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, XFS_DIOSTRAT_SP... | 221 |
--- initial
+++ final
@@ -1,86 +1,86 @@
STATIC int xfs_dquot_disk_alloc(struct xfs_trans **tpp, struct xfs_dquot *dqp, struct xfs_buf **bpp) {
struct xfs_bmbt_irec map;
struct xfs_trans *tp = *tpp;
struct xfs_mount *mp = tp->t_mountp;
struct xfs_buf *bp;
struct xfs_inode *quotip = xfs_quota_inode(mp, dq... | 222 |
--- initial
+++ final
@@ -1,28 +1,27 @@
static int xfs_qm_dqread_alloc(struct xfs_mount *mp, struct xfs_dquot *dqp, struct xfs_buf **bpp) {
struct xfs_trans *tp;
struct xfs_defer_ops dfops;
struct xfs_buf *bp;
xfs_fsblock_t firstblock;
int error;
error = xfs_trans_alloc(mp, &M_RES(mp)->tr_qm_dqalloc,... | 223 |
--- initial
+++ final
@@ -1,122 +1,121 @@
int xfs_create(xfs_inode_t *dp, struct xfs_name *name, umode_t mode, dev_t rdev, xfs_inode_t **ipp) {
int is_dir = S_ISDIR(mode);
struct xfs_mount *mp = dp->i_mount;
struct xfs_inode *ip = NULL;
struct xfs_trans *tp = NULL;
int error;
struct xfs_defer_ops dfo... | 224 |
--- initial
+++ final
@@ -1,68 +1,67 @@
STATIC int xfs_inactive_ifree(struct xfs_inode *ip) {
struct xfs_defer_ops dfops;
xfs_fsblock_t first_block;
struct xfs_mount *mp = ip->i_mount;
struct xfs_trans *tp;
int error;
/*
* We try to use a per-AG reservation for any block needed by the finobt
... | 225 |
--- initial
+++ final
@@ -1,75 +1,74 @@
int xfs_itruncate_extents_flags(struct xfs_trans **tpp, struct xfs_inode *ip, int whichfork, xfs_fsize_t new_size, int flags) {
struct xfs_mount *mp = ip->i_mount;
struct xfs_trans *tp = *tpp;
struct xfs_defer_ops *odfops = tp->t_dfops;
struct xfs_defer_ops dfops;
... | 226 |
--- initial
+++ final
@@ -1,69 +1,68 @@
int xfs_link(xfs_inode_t *tdp, xfs_inode_t *sip, struct xfs_name *target_name) {
xfs_mount_t *mp = tdp->i_mount;
xfs_trans_t *tp;
int error;
struct xfs_defer_ops dfops;
xfs_fsblock_t first_block;
int resblks;
trace_xfs_link(tdp, target_name);
ASSERT(!S_IS... | 227 |
--- initial
+++ final
@@ -1,93 +1,92 @@
int xfs_remove(xfs_inode_t *dp, struct xfs_name *name, xfs_inode_t *ip) {
xfs_mount_t *mp = dp->i_mount;
xfs_trans_t *tp = NULL;
int is_dir = S_ISDIR(VFS_I(ip)->i_mode);
int error = 0;
struct xfs_defer_ops dfops;
xfs_fsblock_t first_block;
uint resblks;
t... | 228 |
--- initial
+++ final
@@ -1,124 +1,123 @@
int xfs_iomap_write_allocate(xfs_inode_t *ip, int whichfork, xfs_off_t offset, xfs_bmbt_irec_t *imap) {
xfs_mount_t *mp = ip->i_mount;
xfs_fileoff_t offset_fsb, last_block;
xfs_fileoff_t end_fsb, map_start_fsb;
xfs_fsblock_t first_block;
struct xfs_defer_ops dfo... | 230 |
--- initial
+++ final
@@ -1,118 +1,117 @@
int xfs_iomap_write_direct(xfs_inode_t *ip, xfs_off_t offset, size_t count, xfs_bmbt_irec_t *imap, int nmaps) {
xfs_mount_t *mp = ip->i_mount;
xfs_fileoff_t offset_fsb;
xfs_fileoff_t last_fsb;
xfs_filblks_t count_fsb, resaligned;
xfs_fsblock_t firstfsb;
xfs_e... | 231 |
--- initial
+++ final
@@ -1,88 +1,87 @@
int xfs_iomap_write_unwritten(xfs_inode_t *ip, xfs_off_t offset, xfs_off_t count, bool update_isize) {
xfs_mount_t *mp = ip->i_mount;
xfs_fileoff_t offset_fsb;
xfs_filblks_t count_fsb;
xfs_filblks_t numblks_fsb;
xfs_fsblock_t firstfsb;
int nimaps;
xfs_trans_... | 232 |
--- initial
+++ final
@@ -1,59 +1,59 @@
STATIC int xlog_recover_process_intents(struct xlog *log) {
struct xfs_defer_ops dfops;
struct xfs_ail_cursor cur;
struct xfs_log_item *lip;
struct xfs_ail *ailp;
xfs_fsblock_t firstfsb;
int error = 0;
#if defined(DEBUG) || defined(XFS_WARN)
xfs_lsn_t last_... | 233 |
--- initial
+++ final
@@ -1,82 +1,81 @@
int xfs_refcount_recover_cow_leftovers(struct xfs_mount *mp, xfs_agnumber_t agno) {
struct xfs_trans *tp;
struct xfs_btree_cur *cur;
struct xfs_buf *agbp;
struct xfs_refcount_recovery *rr, *n;
struct list_head debris;
union xfs_btree_irec low;
union xfs_btre... | 234 |
--- initial
+++ final
@@ -1,74 +1,73 @@
int xfs_reflink_allocate_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap, bool *shared, uint *lockmode) {
struct xfs_mount *mp = ip->i_mount;
xfs_fileoff_t offset_fsb = imap->br_startoff;
xfs_filblks_t count_fsb = imap->br_blockcount;
struct xfs_bmbt_irec got;
... | 235 |
--- initial
+++ final
@@ -1,54 +1,53 @@
int xfs_reflink_cancel_cow_blocks(struct xfs_inode *ip, struct xfs_trans **tpp, xfs_fileoff_t offset_fsb, xfs_fileoff_t end_fsb, bool cancel_real) {
struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, XFS_COW_FORK);
struct xfs_bmbt_irec got, del;
struct xfs_iext_cursor icur;
x... | 236 |
--- initial
+++ final
@@ -1,94 +1,93 @@
int xfs_reflink_end_cow(struct xfs_inode *ip, xfs_off_t offset, xfs_off_t count) {
struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, XFS_COW_FORK);
struct xfs_bmbt_irec got, del;
struct xfs_trans *tp;
xfs_fileoff_t offset_fsb;
xfs_fileoff_t end_fsb;
xfs_fsblock_t first... | 237 |
--- initial
+++ final
@@ -1,85 +1,84 @@
STATIC int xfs_reflink_remap_extent(struct xfs_inode *ip, struct xfs_bmbt_irec *irec, xfs_fileoff_t destoff, xfs_off_t new_isize) {
struct xfs_mount *mp = ip->i_mount;
bool real_extent = xfs_bmap_is_real_extent(irec);
struct xfs_trans *tp;
xfs_fsblock_t firstfsb;
... | 238 |
--- initial
+++ final
@@ -1,91 +1,90 @@
STATIC int xfs_growfs_rt_alloc(struct xfs_mount *mp, /* file system mount point */
xfs_extlen_t oblocks, /* old count of blocks */
xfs_extlen_t nblocks, /* new count of blocks */
stru... | 239 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 11