/* * Copyright (C) 2005, 2006 * Avishay Traeger (avishay@gmail.com) * Copyright (C) 2008, 2009 * Boaz Harrosh * * Copyrights for code taken from ext2: * Copyright (C) 1992, 1993, 1994, 1995 * Remy Card (card@masi.ibp.fr) * Laboratoire MASI - Institut Blaise Pascal * Universite Pierre et Marie Curie (Paris VI) * from * linux/fs/minix/inode.c * Copyright (C) 1991, 1992 Linus Torvalds * * This file is part of exofs. * * exofs is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. Since it is based on ext2, and the only * valid version of GPL for the Linux kernel is version 2, the only valid * version of GPL for exofs is version 2. * * exofs is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with exofs; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include "exofs.h" static int exofs_release_file(struct inode *inode, struct file *filp) { return 0; } /* exofs_file_fsync - flush the inode to disk * * Note, in exofs all metadata is written as part of inode, regardless. * The writeout is synchronous */ static int exofs_file_fsync(struct file *filp, loff_t start, loff_t end, int datasync) { struct inode *inode = filp->f_mapping->host; int ret; ret = filemap_write_and_wait_range(inode->i_mapping, start, end); if (ret) return ret; inode_lock(inode); ret = sync_inode_metadata(filp->f_mapping->host, 1); inode_unlock(inode); return ret; } static int exofs_flush(struct file *file, fl_owner_t id) { int ret = vfs_fsync(file, 0); /* TODO: Flush the OSD target */ return ret; } const struct file_operations exofs_file_operations = { .llseek = generic_file_llseek, .read_iter = generic_file_read_iter, .write_iter = generic_file_write_iter, .mmap = generic_file_mmap, .open = generic_file_open, .release = exofs_release_file, .fsync = exofs_file_fsync, .flush = exofs_flush, .splice_read = generic_file_splice_read, .splice_write = iter_file_splice_write, }; const struct inode_operations exofs_file_inode_operations = { .setattr = exofs_setattr, }; cgit.cgi/linux/net-next.git/log/?id=89d82452d1fd283bb1e313bc7a1f7c324362cf02'>root/net
AgeCommit message (Expand)AuthorFilesLines
2017-02-07net/sched: act_mirred: remove duplicated include from act_mirred.cWei Yongjun1-2/+0
2017-02-07net: dsa: Add support for platform dataFlorian Fainelli1-18/+84
2017-02-07net: dsa: Rename and export dev_to_net_device()Florian Fainelli1-2/+3
2017-02-06bridge: fdb: write to used and updated at most once per jiffyNikolay Aleksandrov2-2/+4
2017-02-06bridge: move write-heavy fdb members in their own cache lineNikolay Aleksandrov1-4/+6
2017-02-06bridge: move to workqueue gcNikolay Aleksandrov10-23/+29
2017-02-06bridge: modify bridge and port to have often accessed fields in one cache lineNikolay Aleksandrov1-23/+20
2017-02-06net: dsa: introduce bridge notifierVivien Didelot2-11/+61
2017-02-06net: dsa: add switch notifierVivien Didelot5-0/+70
2017-02-06net: dsa: change state setter scopeVivien Didelot1-6/+9
2017-02-06net: dsa: rollback bridging on errorVivien Didelot1-1/+13
2017-02-06net: dsa: simplify netdevice events handlingVivien Didelot1-28/+16
2017-02-06net: dsa: move netdevice notifier registrationVivien Didelot3-10/+26
2017-02-06net-next: treewide use is_vlan_dev() helper function.Parav Pandit1-1/+2
2017-02-06sctp: process fwd tsn chunk only when prsctp is enabledXin Long1-0/+6
2017-02-06net: remove ndo_neigh_{construct, destroy} from stacked devicesIdo Schimmel3-48/+0
2017-02-05net: remove __napi_complete()Eric Dumazet1-21/+3
2017-02-04net: ipv6: Use compressed IPv6 addresses showing route replace errorDavid Ahern1-1/+1
2017-02-04net: ipv6: Change notifications for multipath delete to RTA_MULTIPATHDavid Ahern2-1/+28
2017-02-04net: ipv6: Change notifications for multipath add to RTA_MULTIPATHDavid Ahern2-3/+53
2017-02-04net: ipv6: Add support to dump multipath routes via RTA_MULTIPATH attributeDavid Ahern2-17/+105
2017-02-04net: ipv6: Allow shorthand delete of all nexthops in multipath routeDavid Ahern1-2/+36
2017-02-03net: skb_needs_check() accepts CHECKSUM_NONE for txEric Dumazet1-3/+4
2017-02-03net: remove support for per driver ndo_busy_poll()Eric Dumazet2-16/+0
2017-02-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-nextDavid S. Miller53-640/+576
2017-02-03sched: cls_flower: expose priority to offloading netdeviceJiri Pirko1-0/+3
2017-02-03tcp: clear pfmemalloc on outgoing skbEric Dumazet1-0/+7
2017-02-03net: ipv6: Set protocol to kernel for local routesDavid Ahern1-0/+1
2017-02-03bridge: vlan dst_metadata hooks in ingress and egress pathsRoopa Prabhu6-2/+82
2017-02-03bridge: per vlan dst_metadata netlink supportRoopa Prabhu7-48/+641
2017-02-03net/sched: act_ife: Change to use ife moduleYotam Gigi2-78/+33
2017-02-03net: Introduce ife encapsulation moduleYotam Gigi5-0/+165
2017-02-03net/sched: act_ife: Unexport ife_tlv_meta_encodeYotam Gigi1-2/+2
2017-02-03tcp: add tcp_mss_clamp() helperEric Dumazet